<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <title>添加咨询</title>
    <?php require 'templates/common/head.html'; ?>
</head>
<body>

<div class="container-fluid">
    <?php require 'templates/common/nav.html'; ?>
    <div class="panel panel-primary">
        <div class="panel-heading text-center">
            <h3 class="panel-title"><?php if($_GET['id']){ echo "修改";}else{ echo "添加";}?>模板咨询</h3>
        </div>
            <div style="padding: 30px 30px 10px;">
                <form action="index.php?m=push_information&a=add_information_action" method="post" class="bs-example bs-example-form" role="form">
                    <input type="hidden" name="id" value="<?=$info['id']?>"/>
                    <input type="hidden" name="page" value="<?=$_GET['page']?>"/>
                    <div class="input-group">
                        <span class="input-group-addon">标题</span>
                        <input type="text" class="form-control" value="<?php if($id){ echo $info['标题'];};?>" placeholder="输入咨询消息标题" name="title">
                    </div>
                    <br>
                    <div class="input-group">
                        <span class="input-group-addon">发布人</span>
                        <input type="text" class="form-control" value="<?php if($id){ echo $info['发布人'];};?>" placeholder="输入咨询消息地址" name="owner">
                    </div>
                    <br>
                    <div class="input-group">
                        <span class="input-group-addon">消息类别</span>
                        <input type="text" class="form-control" value="<?php if($id){ echo $info['消息类别'];};?>" placeholder="输入咨询消息消息类别" name="type">
                    </div>
                    <br>
                    <div class="input-group">
                        <span class="input-group-addon">发布时间</span>
                        <input type="text" class="form-control" value="<?php if($id){ echo $info['发布时间'];};?>" placeholder="输入咨询消息发布时间" name="time">
                    </div>
                    <br>
                    <div class="input-group">
                        <span class="input-group-addon">追加</span>
                        <input type="text" class="form-control" value="<?php if($id){ echo $info['追加'];};?>" placeholder="输入咨询消息追加信息" name="additional">
                    </div>
                    <br>
                    <!--<div class="input-group">-->
                        <!--<span class="input-group-addon">咨询模板ID</span>-->
                        <!--<input type="text" class="form-control" value="<?php if($id){ echo $info['咨询模板ID'];};?>" placeholder="输入咨询模板ID" name="template_id">-->
                    <!--</div>-->
                    <br>
                    <div class="input-group">
                        <input type="submit" class="form-control btn btn-primary" value="提交">
                    </div>
                </form>
            </div>
    </div>
</div>
<?php require 'templates/common/foot.html'; ?>
</body>
</html>